package com.cxx.home.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.cxx.framework.data.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("product")
public class Product extends AbstractEntity {
    @TableField("name")
    private String name;

    @TableField("purchase_date")
    private Date purchaseDate;

    @TableField("expiry_date")
    private Date expiryDate;

    @TableField("price")
    private Double price;

    @TableField("category")
    private String category;

    @TableField("purchaser")
    private String purchaser;

    @TableField("channel")
    private String channel;

    @TableField("image_url")
    private String imageUrl;
}
